package com.scholarship.modules.backend.dao;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zhz
 * @date 2021/8/31 10:20
 * 备注：包含Date类型的开始和结束
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DateStartAndEnd {
    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    Date start;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    Date end;
}
